package com.yongninger.adapter;

import java.util.HashMap;
import java.util.List;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.yongninger.activity.R;

public class ShipsmentinfoListViewAdapter extends ListViewAdapter {
	public ShipsmentinfoListViewAdapter(Context context,
			List<HashMap<String, Object>> items) {
		super(context, items);
	}

	@Override
	public View getView(int position, View view, ViewGroup parent) {
		if (view == null) {
			view = inflater.inflate(R.layout.shipsment_item, null);
		}
		TextView smid = (TextView) view.findViewById(R.id.smid);
		smid.setText(items.get(position).get("smid").toString());
		TextView smname = (TextView) view.findViewById(R.id.smname);
		smname.setText(items.get(position).get("smname").toString());
		TextView smcode = (TextView) view.findViewById(R.id.smcode);
		smcode.setText(items.get(position).get("smcode").toString());
		TextView smcompany = (TextView) view.findViewById(R.id.smcompany);
		smcompany.setText(items.get(position).get("smcompany").toString());
		return view;
	}
}
